package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.library.common.GeoPoint;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Dell
 * @since 2021-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Taxi对象", description = "")
public class Taxi implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String plateNumber;

    private String serialNumber;

    private Long companyId;

    private Boolean isAvailable;

    @ApiModelProperty(value = "是否报废 true:报废 false:暂未报废")
    private Boolean isScrapped;

    private GeoPoint lastLocate;

    @ApiModelProperty(value = "最后更新司机坐标的时间戳")
    private Long lastLocateTimestamp;

    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;

    private Integer vehicleModel;

    private String taxiDetails;

    /**
     * 车型 0出租  1网约车
     */
    private Integer type;
}
